package favorites

import (
	"github.com/gin-gonic/gin"
	. "savor_gin/controllers/favorites"
	"savor_gin/middlewares/token"
)

func FavorLoad(g *gin.Engine) {
	g.DELETE("/favorite/:recipeId", token.AuthMiddleware(), DeleteFavor)
	g.GET("/favorite", token.AuthMiddleware(), CheckFavor)
	g.GET("/favorite/list", GetFavorListByUserId)
	g.POST("/favorite", token.AuthMiddleware(), AddFavor)
}
